package Fenetres;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JComboBox;
import javax.swing.JButton;
import java.awt.Font;

public class Fenetre_Creer_Profil extends JFrame {

	private JPanel contentPane;
	protected JTextField titreprofil;
	protected JTextField nom_lieu;
	protected JComboBox Heure;
	protected JComboBox Min;
	protected JComboBox Sec;
	protected JComboBox Heure1;
	protected JComboBox Sec1;
	protected JComboBox Min1;
	private int heure, min, sec; 
	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Fenetre_Creer_Profil frame = new Fenetre_Creer_Profil();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Fenetre_Creer_Profil() {
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 557, 501);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblNewLabel = new JLabel("Nom Profil : ");
		lblNewLabel.setFont(new Font("Century Gothic", Font.PLAIN, 16));
		lblNewLabel.setBounds(134, 87, 118, 37);
		contentPane.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("Horaire Ouverture : ");
		lblNewLabel_1.setFont(new Font("Century Gothic", Font.PLAIN, 16));
		lblNewLabel_1.setBounds(69, 136, 173, 45);
		contentPane.add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel("Horaire Fermerture : ");
		lblNewLabel_2.setFont(new Font("Century Gothic", Font.PLAIN, 16));
		lblNewLabel_2.setBounds(69, 192, 156, 62);
		contentPane.add(lblNewLabel_2);
		
		JLabel lblNewLabel_3 = new JLabel("Lieu associ\u00E9 : ");
		lblNewLabel_3.setFont(new Font("Century Gothic", Font.PLAIN, 16));
		lblNewLabel_3.setBounds(124, 265, 118, 45);
		contentPane.add(lblNewLabel_3);
		
		titreprofil = new JTextField();
		titreprofil.setBounds(248, 87, 171, 33);
		contentPane.add(titreprofil);
		titreprofil.setColumns(10);
		
		Heure = new JComboBox();
		Heure.setBounds(248, 143, 45, 33);
		for(heure = 0; heure<= 24; heure++) {
			
			comboBox.addItem(heure);
		}
		contentPane.add(Heure);
		
		Min = new JComboBox();
		Min.setBounds(303, 143, 51, 33);
		for(heure = 0; heure<= 24; heure++) {
			
			comboBox.addItem(heure);
		}
		contentPane.add(Min);
		
		Sec = new JComboBox();
		Sec.setBounds(364, 143, 55, 33);
		for(heure = 0; heure<= 24; heure++) {
			
			comboBox.addItem(heure);
		}
		contentPane.add(Sec);
		
		JButton btnRetour = new JButton("Retour");
		btnRetour.setBounds(21, 403, 89, 37);
		contentPane.add(btnRetour);
		
		JButton btnCreer = new JButton("Creer");
		btnCreer.setBounds(239, 372, 138, 45);
		contentPane.add(btnCreer);
		
		Heure1 = new JComboBox();
		Heure1.setBounds(248, 204, 45, 33);
		for(heure = 0; heure<= 24; heure++) {
			
			comboBox.addItem(heure);
		}
		contentPane.add(Heure1);
		
		Min1 = new JComboBox();
		Min1.setBounds(303, 204, 51, 33);
		for(heure = 0; heure<= 24; heure++) {
			
			comboBox.addItem(heure);
		}
		contentPane.add(Min1);
		
		Sec1 = new JComboBox();
		Sec1.setBounds(364, 204, 55, 33);
		for(heure = 0; heure<= 24; heure++) {
			
			comboBox.addItem(heure);
		}
		contentPane.add(Sec1);
		
		nom_lieu = new JTextField();
		nom_lieu.setColumns(10);
		nom_lieu.setBounds(248, 269, 171, 33);
		contentPane.add(nom_lieu);
		
		JLabel lblNewLabel_4 = new JLabel("* HH : Mm : Sec");
		lblNewLabel_4.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		lblNewLabel_4.setBounds(429, 149, 88, 22);
		contentPane.add(lblNewLabel_4);
		
		JLabel label = new JLabel("* HH : Mm : Sec");
		label.setFont(new Font("Century Gothic", Font.PLAIN, 12));
		label.setBounds(429, 213, 88, 22);
		contentPane.add(label);
	}
}
